<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Categories extends Model
{
    protected $table = 'categories';
    protected $primaryKey = 'id';
    public $timestamps = true;

    public function findArticles()
    {
        return $this->hasMany('App\Model\Articles', 'category_id');
    }
}
